package com.hrm.service;

import java.util.List;

import com.hrm.entity.DepartmentStructure;
import com.hrm.entity.Role;
import com.hrm.entity.User;
import com.hrm.util.Page;

public interface GroupService {
	public DepartmentStructure getTopGroup();
	public List<Role> getRoles(Page page);
	public List<Role> getRoles();
	public DepartmentStructure getGroupById(long id);
	public int addGroup(DepartmentStructure dStructure);
	public int updateGroup(DepartmentStructure dStructure);
	public int deleteGroupById(long id);
	public int deleteUserRoleByRoleId(long id,String userids);
	List<User> getUsersNotRoleId(Page page,long id);
	public int getUsersCountsNotRoleId(long id);
	List<User> getUsersByRoleId(Page page,long id);
	public int getUsersCountsByRoleId(long id);
	public int addUsersToRole(long id,String userids,User user);
	public int addActionsToRole(long id,String actionids,User user);
	List<DepartmentStructure> getDepartmentStructuresByUpId(long id);
}
